﻿<UserControl x:Class="SoftSource.Timecard.Views.GetUserPasswordView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:dataFormToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             d:DesignWidth="285"
             d:DesignHeight="192"
             KeyDown="GetPassword_KeyDown">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock HorizontalAlignment="Left"
                   VerticalAlignment="Top"
                   Text="Password:"
                   TextWrapping="Wrap"
                   Margin="4,0,0,0" />
        <PasswordBox x:Name="passwordBox"
                     d:LayoutOverrides="Height"
                     Grid.Row="1"
                     Margin="8,0,4,0"
                     Password="{Binding Password, Mode=TwoWay}" />
        <StackPanel Grid.Row="2"
                    Orientation="Horizontal"
                    HorizontalAlignment="Right"
                    Margin="4">
            <Button x:Name="OKButton"
                    Content="OK"
                    Width="75"
                    Margin="2"
                    Click="OK_Click" />
            <Button x:Name="CancelButton"
                    Content="Cancel"
                    Width="75"
                    Margin="2"
                    Click="Cancel_Click" />
        </StackPanel>
    </Grid>
</UserControl>
